import { routes } from '@/router/index.js'

export default {
  // 开启命名空间
  namespaced: true,
  // 状态：数据
  state: {
    // 左侧菜单展示数据(初始化使用静态列表，等动态筛选完，再改为动态+静态)
    routeList: routes
  },
  mutations: {
    setRouteList(state, list) {
      state.routeList = [...state.routeList, ...list]
    }
  }
}
